import {SAVE_MENU_TITLE} from '../action_types.js'

let initState = ''
export default function (preState=initState, action) {
  let {type, data} = action;
  switch (type) {
    case SAVE_MENU_TITLE:
      return data
    default:
      return preState
  }
}
